{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <form id="myform" action="{:U('menu/edit')}" method="post">

        <div class="form-group row">
            <label class="form-control-label col-md-2">上级:</label>
            <div class="col-md-6">
                <select name="parentid" class="form-control">
                    <option value="0">一级菜单</option>
                    {$select_categorys}
                </select>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">名称:</label>
            <div class="col-md-6">
                <input type="text" class="form-control" name="name" value="{$vo.name}">
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">节点代码:</label>
            <div class="col-md-6">
                <input type="text" class="form-control" name="node" value="{$vo.node}">
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">参数:</label>
            <div class="col-md-6">
                <input type="text" class="form-control" name="data" value="{$vo.data}"> {:L('examples')}:groupid=1&type=2
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">排序:</label>
            <div class="col-md-6">
                <input type="text" class="form-control" name="listorder" value="{$vo.listorder}">
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">图标:</label>
            <div class="col-md-6">
                <!-- <i class="{$vo.icon}"></i> -->
                <input type="text" class="form-control" name="icon" value="{$vo.icon}">
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">备注:</label>
            <div class="col-md-6">
                <textarea class="form-control" name="remark" rows="5" cols="57">{$vo.remark}</textarea>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">状态:</label>
            <div class="col-md-2">
                <select name="status" class="form-control">
                    <option value="1" {eq name="vo.status" value="1"}selected{/eq}>启用</option>
                    <option value="0" {eq name="vo.status" value="0"}selected{/eq}>禁用</option>
                </select>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2">是否在生产环境下隐藏:</label>
            <div class="col-md-2">
                <select name="is_dev" class="form-control">
                    <option value="1" {eq name="vo.is_dev" value="1"}selected{/eq}>是</option>
                    <option value="0" {eq name="vo.is_dev" value="0"}selected{/eq}>否</option>
                </select>
            </div>
        </div>

        <div class="form-actions">
            <input type="hidden" name="id" value="{$vo.id}"/>
            <button type="submit" class="btn btn-primary ajax_form_edit">提交</button>
            <button type="button" class="btn btn-danger" onclick="javascript:history.back(-1);return false;">返回</button>
        </div>
    </form>

</div>
{/block}